package com.example.schedule.service;

import com.example.model.schedule.dtos.Task;
import org.springframework.stereotype.Service;


public interface TaskService {

    /**
     * 添加任务
     * @param task
     * @return
     */
    public long addTask(Task task);

    /**
     * 取消任务
     * @param taskId
     * @return
     */
    public boolean cancelTask(long taskId);

    public Task pull(int type,int priority);


}
